<ui:composition template="/resources/templates/page.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:define name="page-name">
        <f:event listener="#{moduleView.initModule}" type="preRenderComponent"/>
        <div>
            <h:outputText rendered="#{moduleView.currentModule != null}"
                          value="#{moduleView.currentModule.name}"/>
        </div>
    </ui:define>
    <ui:define name="page-menu">
        <div class="page-menu">
            <ui:include src="/resources/includes/modulesMenu.xhtml"/>
        </div>
    </ui:define>
    <!--<ui:define name="page-content">-->
    <!--<h:panelGroup rendered="#{currentPagePath != ''}">-->
    <!--<ui:include src="#{currentPagePath}"/>-->
    <!--</h:panelGroup>-->
    <!--</ui:define>-->
    <ui:define name="page-footer">
    </ui:define>
</ui:composition>